import React, { Component } from 'react'
import { Button } from 'antd';
export default class Home extends Component {
  getList=()=>{
    axios.get('http://localhost:8000/posts').then(res=>{
      console.log(res)
    })
  }
  render() {
    return (
      <div>
        Home
          <Button type="primary" onClick={()=>{
            getList
          }}>Button</Button>
      </div>
    )
  }
}
